<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>团队购买确认</title>
<script type="text/javascript" src="<s:url value='/resources/js/jquery/jquery-1.5.2.min.js'/>"></script>
<script type="text/javascript" src="<s:url value='/resources/js/common/time.js'/>"></script> 
<link rel="stylesheet" type="text/css" href="<s:url value='/resources/css/tick/header.css'/>" media="all" />
<script type="text/javascript" src="<s:url value='/resources/js/aio/jquery.keypad.js'/>"></script>
<link rel="stylesheet" type="text/css" href="<s:url value='/resources/css/aio/jquery.keypad.css'/>" media="all" />
<script type="text/javascript">
$(function(){
	$('.sys_time').createTime({format:'yyyy-MM-dd EEE HH:mm:ss'});
	$('#defaultKeypad').keypad();
});
var contextpath = "<%= request.getContextPath() %>";
function submit(){
	$.ajax({
		url: contextpath+'/place/teamok',
		data: $("#iform").serialize(),
		type: 'POST',
		dataType: 'json',
		success: function(json){
			var data = eval("("+json+")");
			if(data == 1){
			window.location.href= contextpath+"/web/ticket/teamBuyOK.jsp";
			}
		},
		error: function(xhr, ajaxOptions, thrownError){
		}
	});
}

</script>
<style>
body{
	width:1024px;
	height:786px;
	padding: 0;
	margin: 0;
}
.back{
	width:100%;
	height:100%;
	background:url(<s:url value='/resources/images/ticket/buy/teambase.jpg'/>);
	background-repeat : no-repeat;
	text-align:center;
}
.mid{
	margin-left: auto;
	margin-right: auto;
	position:relative;
	top:250px;
	font-size:24px;
}
img{border:0px;}
.but{border: 0;}
.but:HOVER{
	cursor: pointer;
}

</style>
</head>

<body>
<div class="back" >
<div class="header">
		<div class="systime">昆明&nbsp;<span class="sys_time">2013/5/26&nbsp;星期&nbsp;&nbsp;&nbsp;00:00:00</span></div>
	</div>
	<div class="mid">
     <div>
     	<form id="iform" method="post" action="<s:url value='/place/teamok'/>">
     	<table align="center">
        	<tr>
            	<td>旅行社:</td>
                <td><s:property value="#request.plan.tourName" /></td>
            	<td>旅行团:</td>
                <td><s:property value="#request.plan.line" /></td>
            </tr>
            <tr>
            	<td>预定人数:</td>
                <td><s:property value="#request.num" />人</td>
                <td>实到:</td>
                <td><input type="text" name ="thenum" value="<s:property value="#request.num" />" id="defaultKeypad"style="width:50px"/>人</td>
            </tr>
            	<td colspan="2"><button type="submit" class="but"><img src="<s:url value='/resources/images/ticket/buy/yes.jpg'/>"/></button></td>
                <td colspan="2"><a href="<s:url value='/place/index'/>"><img src="<s:url value='/resources/images/ticket/buy/no.jpg'/>"/></a></td>
        </table>
        </form>
     </div>
     
  </div>
</div>
</body>
</html>